<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<% 
 /**
  功能名称:角色下的人员设置(学校)
  
  创建人:
**/
%>
<%
String path = request.getContextPath();
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    
    <title>权限管理</title>
	<link href="<%=path %>/css/index_css.css" rel="stylesheet" type="text/css" />
	<script language="javascript" src="<%=path %>/js/syAjax.js"></script>
	<script src="<%=path%>/js/resizeIframe.js" type="text/javascript"></script>
	<script type="text/javascript">
		 window.onload = function(){
		 parent.location.hash="top";
      	
      	resizeIframe();
        	new Anim.DD($("items"), $("title"));
		$("items").style.left = "50px";
		$("items").style.top = "100px";
          
        
        };
    var objectTD="";
	var objectHIDDENID;
	var orgId;
	function giveParamArr(){
		if(objectTD!=""){return "";}
		return document.getElementById(objectHIDDENID).value;
	}
	

      //显示遮罩
      function displayModuleDiv(){
		document.getElementById("items").style.display = "";	
		resizeIframe();
	}
	
	//关闭div
	function closeDIV(){
		document.getElementById("items").style.display = "none";
	}
    function doChooseUser(returnStr){
	//原版内容
		var idStr;
		if(returnStr==undefined){
			return;
		}
		if(objectTD=="document"){
			toUserRole(returnStr);
		}
		if(returnStr!=null && returnStr!=""){
			var UserArr = returnStr.substring(0,returnStr.length-1).split(",");
			var UserNameStr="";
			for(var i=0;i<UserArr.length;i++){
				var user=UserArr[i];
				var sonArr=user.split("_");
				if((i+1)%6==0){
					UserNameStr+="&nbsp;"+sonArr[1]+"&nbsp;&nbsp;"+"<input name=\"ppp"+orgId+"\" type=\"hidden\" value=\""+sonArr[0]+"\"/><br>";
				}else{
					UserNameStr+="&nbsp;"+sonArr[1]+"&nbsp;&nbsp;"+"<input name=\"ppp"+orgId+"\" type=\"hidden\" value=\""+sonArr[0]+"\"/>";	
				}
				idStr+=sonArr[0]+",";
			}
			document.getElementById(objectHIDDENID).value=idStr;
			if(UserNameStr!=""){								
				document.getElementById('div'+orgId).innerHTML=UserNameStr;					
			}	
		}else{
			document.getElementById('div'+orgId).innerHTML="<font color=\"red\">该角色下暂无数据</font>";
		}	
		closeDIV();
	}    
        function showModel(roleId){
        	objectTD="";
	        orgId=roleId;
	        objectHIDDENID="p"+orgId;
			document.getElementById("selectUserIframe").src="<%=path%>/toSelectTeacherorganizationAction.action?years=${applicationScope.currentYear}&role.roleId="+roleId+"&actionURL=doChangeRoleUserorganizationAction.action&ttt="+new Date();
			displayModuleDiv();
        }
        
        function showModelDocument(roleId){
        	objectTD="";
	        orgId=roleId;
	        objectHIDDENID="p"+orgId;
			document.getElementById("selectUserIframe").src="<%=path%>/toSelectTeacherorganizationAction.action?years=${applicationScope.currentYear}&role.roleId="+roleId+"&actionURL=doChangeDocTypeUserroleAction.action&ttt="+new Date();
			displayModuleDiv();
        }
       //无侵入性的选择用户 闷男 2011-11-9 
       function selectUser() {
       		objectTD="document";
       		document.getElementById("selectUserIframe").src="<%=path%>/toSelectTeacherorganizationAction.action?flag=radio&ttt="+new Date();
       		displayModuleDiv();
       } 
       //进入按用户赋予权限 闷男 2011-11-9
       function toUserRole(data) {
       		if(data) {
       			data = data.substring('0',data.indexOf('_'));
       			window.location.href="<%=path%>/toUserRoleSetroleAction.action?from=role&user.userId="+data+"&t="+new Date();
  			}
       } 
        
	</script>

  </head>
  
 <body>
  <div id="contentDIV" style="position:absolute;width:100%; padding:5px; background-color:#ffffff;z-index:1;">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td colspan="2" align="left" class="f_5">权限管理</td>
  </tr>
  <tr>
    <td height="1" colspan="2" bgcolor="#9DD12E"></td>
  </tr>
   <tr height="25">
  	<td ><input type="button" style="height:20px;display: block;vertical-align: bottom;background-color:#B8C9DB;" value="按用户赋予权限" onclick="selectUser()"/></td>
  </tr>
  <tr>
    <td colspan="2" align="left" valign="top" class="border_2"><table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#DCDCDC">
      <tr>
        <td width="14%" height="30" align="left" bgcolor="#DBE9F6" class="f_4">&nbsp;角色名称</td>
        <td width="86%" align="left" bgcolor="#DBE9F6" class="f_4">&nbsp;姓名 </td>
        </tr>
      <tr>
        <td height="50" bgcolor="#FFFFFF" class="f_4">&nbsp;学校系统管理员</td>
        <td align="left" bgcolor="#FFFFFF" style="cursor:pointer;" onmouseover="this.style.backgroundColor='#E4F5FF'" onmouseout="this.style.backgroundColor='#FFFFFF'" onclick="showModel('sysadmin');">
        <c:set var="sysadmin" scope="page" value="sysadmin"></c:set>
        <c:set value="" var="totalArr"></c:set>
        <span id="divsysadmin">
        <c:if test="${not empty requestScope.UserMAP[sysadmin]}">
        <c:forEach items="${requestScope.UserMAP[sysadmin]}" var="p" varStatus="i" begin="0" step="1">
        <c:set value="${p.userId },${totalArr }" var="totalArr"></c:set>
        	<c:if test="${i.count%6==0}">
        		&nbsp;${p.name }&nbsp;<input name="pppsysadmin" type="hidden" value="${p.userId }"/><br>
        	</c:if>
        	<c:if test="${i.count%6!=0}">
        		&nbsp;${p.name }&nbsp;<input name="pppsysadmin" type="hidden" value="${p.userId }"/>
        	</c:if>
        	
        </c:forEach>
        </c:if>
        <c:if test="${empty requestScope.UserMAP[sysadmin]}">
        	<font color="red">该角色下暂无数据</font>
        </c:if>
        </span>
        <input type="hidden" id="psysadmin" value="${totalArr}"/>
        </td>
        </tr>
      <tr>
        <td height="50" bgcolor="#F2F5FA" class="f_4">&nbsp;校长等领导</td>
        <td align="left" bgcolor="#F2F5FA" style="cursor:pointer;" onmouseover="this.style.backgroundColor='#E4F5FF'" onmouseout="this.style.backgroundColor='#F2F5FA'" onclick="showModel('xzadmin');">
        <c:set var="xzadmin" scope="page" value="xzadmin"></c:set>
        <c:set value="" var="totalArr"></c:set>
        <span id="divxzadmin">
        <c:if test="${not empty requestScope.UserMAP[xzadmin]}">
        <c:forEach items="${requestScope.UserMAP[xzadmin]}" var="p" varStatus="i" begin="0" step="1">
        <c:set value="${p.userId },${totalArr }" var="totalArr"></c:set>
        	<c:if test="${i.count%6==0}">
        		&nbsp;${p.name }&nbsp;<input name="pppxzadmin" type="hidden" value="${p.userId }"/><br>
        	</c:if>
        	<c:if test="${i.count%6!=0}">
        		&nbsp;${p.name }&nbsp;<input name="pppxzadmin" type="hidden" value="${p.userId }"/>
        	</c:if>
        	
        </c:forEach>
        </c:if>
        <c:if test="${empty requestScope.UserMAP[xzadmin]}">
        	<font color="red">该角色下暂无数据</font>
        </c:if>
        </span>
        <input type="hidden" id="pxzadmin" value="${totalArr}"/>
        </td>
        </tr>
        <c:if test="${applicationScope.shiyue1 eq 'true'}">
      <tr>
        <td height="50" bgcolor="#FFFFFF" class="f_4">&nbsp;办公管理员</td>
        <td align="left" bgcolor="#FFFFFF" style="cursor:pointer;" onmouseover="this.style.backgroundColor='#E4F5FF'" onmouseout="this.style.backgroundColor='#FFFFFF'" onclick="showModel('gwadmin');">
        <c:set var="gwadmin" scope="page" value="gwadmin"></c:set>
        <c:set value="" var="totalArr"></c:set>
        <span id="divgwadmin">
        <c:if test="${not empty requestScope.UserMAP[gwadmin]}">
        <c:forEach items="${requestScope.UserMAP[gwadmin]}" var="p" varStatus="i" begin="0" step="1">
        <c:set value="${p.userId },${totalArr }" var="totalArr"></c:set>
        	<c:if test="${i.count%6==0}">
        		&nbsp;${p.name }&nbsp;<input name="pppgwadmin" type="hidden" value="${p.userId }"/><br>
        	</c:if>
        	<c:if test="${i.count%6!=0}">
        		&nbsp;${p.name }&nbsp;<input name="pppgwadmin" type="hidden" value="${p.userId }"/>
        	</c:if>
        	
        </c:forEach>
        </c:if>
        <c:if test="${empty requestScope.UserMAP[gwadmin]}">
        	<font color="red">该角色下暂无数据</font>
        </c:if>
        </span>
        <input type="hidden" id="pgwadmin" value="${totalArr}"/>
        </td>
        </tr>
        </c:if>
        <c:if test="${applicationScope.shiyue2 eq 'true'}">
      <tr>
        <td height="50" bgcolor="#F2F5FA" class="f_4">&nbsp;学籍管理员</td>
        <td align="left" bgcolor="#F2F5FA" style="cursor:pointer;" onmouseover="this.style.backgroundColor='#E4F5FF'" onmouseout="this.style.backgroundColor='#F2F5FA'" onclick="showModel('xjadmin');">
        <c:set var="xjadmin" scope="page" value="xjadmin"></c:set>
        <c:set value="" var="totalArr"></c:set>
        <span id="divxjadmin">
        <c:if test="${not empty requestScope.UserMAP[xjadmin]}">
        <c:forEach items="${requestScope.UserMAP[xjadmin]}" var="p" varStatus="i" begin="0" step="1">
        <c:set value="${p.userId },${totalArr }" var="totalArr"></c:set>
        	<c:if test="${i.count%6==0}">
        		&nbsp;${p.name }&nbsp;<input name="pppxjadmin" type="hidden" value="${p.userId }"/><br>
        	</c:if>
        	<c:if test="${i.count%6!=0}">
        		&nbsp;${p.name }&nbsp;<input name="pppxjadmin" type="hidden" value="${p.userId }"/>
        	</c:if>
        	
        </c:forEach>
        </c:if>
        <c:if test="${empty requestScope.UserMAP[xjadmin]}">
        	<font color="red">该角色下暂无数据</font>
        </c:if>
        </span>
        <input type="hidden" id="pxjadmin" value="${totalArr}"/>
        </td>
        </tr>
        </c:if>
        <c:if test="${applicationScope.shiyue3 eq 'true'}">
      <tr>
        <td height="50" bgcolor="#FFFFFF" class="f_4">&nbsp;人事管理员</td>
        <td align="left" bgcolor="#FFFFFF" style="cursor:pointer;" onmouseover="this.style.backgroundColor='#E4F5FF'" onmouseout="this.style.backgroundColor='#FFFFFF'" onclick="showModel('rsadmin');">
        <c:set var="rsadmin" scope="page" value="rsadmin"></c:set>
        <c:set value="" var="totalArr"></c:set>
        <span id="divrsadmin">
        <c:if test="${not empty requestScope.UserMAP[rsadmin]}">
        <c:forEach items="${requestScope.UserMAP[rsadmin]}" var="p" varStatus="i" begin="0" step="1">
        <c:set value="${p.userId },${totalArr }" var="totalArr"></c:set>
        	<c:if test="${i.count%6==0}">
        		&nbsp;${p.name }&nbsp;<input name="ppprsadmin" type="hidden" value="${p.userId }"/><br>
        	</c:if>
        	<c:if test="${i.count%6!=0}">
        		&nbsp;${p.name }&nbsp;<input name="ppprsadmin" type="hidden" value="${p.userId }"/>
        	</c:if>
        	
        </c:forEach>
        </c:if>
        <c:if test="${empty requestScope.UserMAP[rsadmin]}">
        	<font color="red">该角色下暂无数据</font>
        </c:if>
        </span>
        <input type="hidden" id="prsadmin" value="${totalArr}"/>
        </td>
      </tr>
      </c:if>
      <c:if test="${applicationScope.shiyue4 eq 'true'}">
      <tr>
        <td height="50" bgcolor="#F2F5FA" class="f_4">&nbsp;校产管理员</td>
        <td align="left" bgcolor="#F2F5FA" style="cursor:pointer;" onmouseover="this.style.backgroundColor='#E4F5FF'" onmouseout="this.style.backgroundColor='#F2F5FA'" onclick="showModel('xcadmin');">
        <c:set var="xcadmin" scope="page" value="xcadmin"></c:set>
        <c:set value="" var="totalArr"></c:set>
        <span id="divxcadmin">
        <c:if test="${not empty requestScope.UserMAP[xcadmin]}">
        <c:forEach items="${requestScope.UserMAP[xcadmin]}" var="p" varStatus="i" begin="0" step="1">
        <c:set value="${p.userId },${totalArr }" var="totalArr"></c:set>
        	<c:if test="${i.count%6==0}">
        		&nbsp;${p.name }&nbsp;<input name="pppxcadmin" type="hidden" value="${p.userId }"/><br>
        	</c:if>
        	<c:if test="${i.count%6!=0}">
        		&nbsp;${p.name }&nbsp;<input name="pppxcadmin" type="hidden" value="${p.userId }"/>
        	</c:if>
        	
        </c:forEach>
        </c:if>
        <c:if test="${empty requestScope.UserMAP[xcadmin]}">
        	<font color="red">该角色下暂无数据</font>
        </c:if>
        </span>
        <input type="hidden" id="pxcadmin" value="${totalArr}"/>
        </td>
      </tr>
      </c:if>
      <tr>
        <td height="50" bgcolor="#FFFFFF" class="f_4">&nbsp;教务管理员</td>
        <td align="left" bgcolor="#FFFFFF" style="cursor:pointer;" onmouseover="this.style.backgroundColor='#E4F5FF'" onmouseout="this.style.backgroundColor='#FFFFFF'" onclick="showModel('jwadmin');">
        <c:set var="jwadmin" scope="page" value="jwadmin"></c:set>
        <c:set value="" var="totalArr"></c:set>
        <span id="divjwadmin">
        <c:if test="${not empty requestScope.UserMAP[jwadmin]}">
         <c:forEach items="${requestScope.UserMAP[jwadmin]}" var="p" varStatus="i" begin="0" step="1">
         <c:set value="${p.userId },${totalArr }" var="totalArr"></c:set>
        	<c:if test="${i.count%6==0}">
        		&nbsp;${p.name }&nbsp;<input name="pppjwadmin" type="hidden" value="${p.userId }"/><br>
        	</c:if>
        	<c:if test="${i.count%6!=0}">
        		&nbsp;${p.name }&nbsp;<input name="pppjwadmin" type="hidden" value="${p.userId }"/>
        	</c:if>
        	
        </c:forEach>
        </c:if>
        <c:if test="${empty requestScope.UserMAP[jwadmin]}">
        	<font color="red">该角色下暂无数据</font>
        </c:if>
        </span>
        <input type="hidden" id="pjwadmin" value="${totalArr}"/>
        </td>
      </tr>
      <c:if test="${applicationScope.shiyue6 eq 'true'}">
      <tr>
        <td height="50" bgcolor="#F2F5FA" class="f_4" nowrap="nowrap">&nbsp;学业评价管理员</td>
        <td align="left" bgcolor="#F2F5FA" style="cursor:pointer;" onmouseover="this.style.backgroundColor='#E4F5FF'" onmouseout="this.style.backgroundColor='#F2F5FA'" onclick="showModel('markadmin');">
        <c:set var="markadmin" scope="page" value="markadmin"></c:set>
        <c:set value="" var="totalArr"></c:set>
        <span id="divmarkadmin">
        <c:if test="${not empty requestScope.UserMAP[markadmin]}">
        <c:forEach items="${requestScope.UserMAP[markadmin]}" var="p" varStatus="i" begin="0" step="1">
        <c:set value="${p.userId },${totalArr }" var="totalArr"></c:set>
        	<c:if test="${i.count%6==0}">
        		&nbsp;${p.name }&nbsp;<input name="pppmarkadmin" type="hidden" value="${p.userId }"/><br>
        	</c:if>
        	<c:if test="${i.count%6!=0}">
        		&nbsp;${p.name }&nbsp;<input name="pppmarkadmin" type="hidden" value="${p.userId }"/>
        	</c:if>
        	
        </c:forEach>
        </c:if>
        <c:if test="${empty requestScope.UserMAP[markadmin]}">
        	<font color="red">该角色下暂无数据</font>
        </c:if>
        </span>
        <input type="hidden" id="pmarkadmin" value="${totalArr}"/>
        </td>
      </tr>
      </c:if>
      <c:if test="${applicationScope.shiyue9 eq 'true'}">
      <tr>
        <td height="50" bgcolor="#FFFFFF" class="f_4" nowrap="nowrap">&nbsp;资源管理员</td>
        <td align="left" bgcolor="#FFFFFF" style="cursor:pointer;" onmouseover="this.style.backgroundColor='#E4F5FF'" onmouseout="this.style.backgroundColor='#F2F5FA'" onclick="showModel('zyadmin');">
        <c:set var="zyadmin" scope="page" value="zyadmin"></c:set>
        <c:set value="" var="totalArr"></c:set>
        <span id="divzyadmin">
        <c:if test="${not empty requestScope.UserMAP[zyadmin]}">
        <c:forEach items="${requestScope.UserMAP[zyadmin]}" var="p" varStatus="i" begin="0" step="1">
        <c:set value="${p.userId },${totalArr }" var="totalArr"></c:set>
        	<c:if test="${i.count%6==0}">
        		&nbsp;${p.name }&nbsp;<input name="pppzyadmin" type="hidden" value="${p.userId }"/><br>
        	</c:if>
        	<c:if test="${i.count%6!=0}">
        		&nbsp;${p.name }&nbsp;<input name="pppzyadmin" type="hidden" value="${p.userId }"/>
        	</c:if>
        	
        </c:forEach>
        </c:if>
        <c:if test="${empty requestScope.UserMAP[zyadmin]}">
        	<font color="red">该角色下暂无数据</font>
        </c:if>
        </span>
        <input type="hidden" id="pzyadmin" value="${totalArr}"/>
        </td>
      </tr>
      </c:if>
      <tr>
        <td height="50" bgcolor="#F2F5FA" class="f_4">&nbsp;德育管理员</td>
        <td align="left" bgcolor="#F2F5FA" style="cursor:pointer;" onmouseover="this.style.backgroundColor='#E4F5FF'" onmouseout="this.style.backgroundColor='#F2F5FA'" onclick="showModel('amadmin');">
          <c:set var="amadmin" scope="page" value="amadmin"></c:set>
        <c:set value="" var="totalArr"></c:set>
        <span id="divamadmin">
        <c:if test="${not empty requestScope.UserMAP[amadmin]}">
        <c:forEach items="${requestScope.UserMAP[amadmin]}" var="p" varStatus="i" begin="0" step="1">
        <c:set value="${p.userId },${totalArr }" var="totalArr"></c:set>
        	<c:if test="${i.count%6==0}">
        		&nbsp;${p.name }&nbsp;<input name="pppamadmin" type="hidden" value="${p.userId }"/><br>
        	</c:if>
        	<c:if test="${i.count%6!=0}">
        		&nbsp;${p.name }&nbsp;<input name="pppamadmin" type="hidden" value="${p.userId }"/>
        	</c:if>
        </c:forEach>
        </c:if>
        <c:if test="${empty requestScope.UserMAP[amadmin]}">
        	<font color="red">该角色下暂无数据</font>
        </c:if>
        </span>
        <input type="hidden" id="pamadmin" value="${totalArr}"/>
        </td>
        </tr>
      <tr>
        <td height="50" bgcolor="#FFFFFF" class="f_4" nowrap="nowrap">&nbsp;文印管理员</td>
        <td align="left" bgcolor="#FFFFFF" style="cursor:pointer;" onmouseover="this.style.backgroundColor='#E4F5FF'" onmouseout="this.style.backgroundColor='#F2F5FA'" onclick="showModel('wyadmin');">
         <c:set var="wyadmin" scope="page" value="wyadmin"></c:set>
        <c:set value="" var="totalArr"></c:set>
        <span id="divwyadmin">
        <c:if test="${not empty requestScope.UserMAP[wyadmin]}">
        <c:forEach items="${requestScope.UserMAP[wyadmin]}" var="p" varStatus="i" begin="0" step="1">
        <c:set value="${p.userId },${totalArr }" var="totalArr"></c:set>
        	<c:if test="${i.count%6==0}">
        		&nbsp;${p.name }&nbsp;<input name="pppwyadmin" type="hidden" value="${p.userId }"/><br>
        	</c:if>
        	<c:if test="${i.count%6!=0}">
        		&nbsp;${p.name }&nbsp;<input name="pppwyadmin" type="hidden" value="${p.userId }"/>
        	</c:if>
        	
        </c:forEach>
        </c:if>
        <c:if test="${empty requestScope.UserMAP[wyadmin]}">
        	<font color="red">该角色下暂无数据</font>
        </c:if>
        </span>
        <input type="hidden" id="pwyadmin" value="${totalArr}"/>
        </td>
      </tr>
       <tr>
        <td height="50" bgcolor="#F2F5FA" class="f_4" nowrap="nowrap">&nbsp;报修管理员</td>
        <td align="left" bgcolor="#F2F5FA" style="cursor:pointer;" onmouseover="this.style.backgroundColor='#E4F5FF'" onmouseout="this.style.backgroundColor='#F2F5FA'" onclick="showModel('bxadmin');">
         <c:set var="bxadmin" scope="page" value="bxadmin"></c:set>
        <c:set value="" var="totalArr"></c:set>
        <span id="divbxadmin">
        <c:if test="${not empty requestScope.UserMAP[bxadmin]}">
        <c:forEach items="${requestScope.UserMAP[bxadmin]}" var="p" varStatus="i" begin="0" step="1">
        <c:set value="${p.userId },${totalArr }" var="totalArr"></c:set>
        	<c:if test="${i.count%6==0}">
        		&nbsp;${p.name }&nbsp;<input name="pppbxadmin" type="hidden" value="${p.userId }"/><br>
        	</c:if>
        	<c:if test="${i.count%6!=0}">
        		&nbsp;${p.name }&nbsp;<input name="pppbxadmin" type="hidden" value="${p.userId }"/>
        	</c:if>
        	
        </c:forEach>
        </c:if>
        <c:if test="${empty requestScope.UserMAP[bxadmin]}">
        	<font color="red">该角色下暂无数据</font>
        </c:if>
        </span>
        <input type="hidden" id="pbxadmin" value="${totalArr}"/>
        </td>
      </tr>
       <tr>
        <td height="50" bgcolor="#FFFFFF" class="f_4" nowrap="nowrap">&nbsp;论坛管理员</td>
        <td align="left" bgcolor="#FFFFFF" style="cursor:pointer;" onmouseover="this.style.backgroundColor='#E4F5FF'" onmouseout="this.style.backgroundColor='#F2F5FA'" onclick="showModel('ltadmin');">
         <c:set var="ltadmin" scope="page" value="ltadmin"></c:set>
        <c:set value="" var="totalArr"></c:set>
        <span id="divltadmin">
        <c:if test="${not empty requestScope.UserMAP[ltadmin]}">
        <c:forEach items="${requestScope.UserMAP[ltadmin]}" var="p" varStatus="i" begin="0" step="1">
        <c:set value="${p.userId },${totalArr }" var="totalArr"></c:set>
        	<c:if test="${i.count%6==0}">
        		&nbsp;${p.name }&nbsp;<input name="pppltadmin" type="hidden" value="${p.userId }"/><br>
        	</c:if>
        	<c:if test="${i.count%6!=0}">
        		&nbsp;${p.name }&nbsp;<input name="pppltadmin" type="hidden" value="${p.userId }"/>
        	</c:if>
        	
        </c:forEach>
        </c:if>
        <c:if test="${empty requestScope.UserMAP[ltadmin]}">
        	<font color="red">该角色下暂无数据</font>
        </c:if>
        </span>
        <input type="hidden" id="pltadmin" value="${totalArr}"/>
        </td>
      </tr>
     
      <tr>
        <td height="50" bgcolor="#F2F5FA" class="f_4" nowrap="nowrap">&nbsp;财务管理员</td>
        <td align="left" bgcolor="#F2F5FA" style="cursor:pointer;" onmouseover="this.style.backgroundColor='#E4F5FF'" onmouseout="this.style.backgroundColor='#F2F5FA'" onclick="showModel('cwadmin');">
         <c:set var="cwadmin" scope="page" value="cwadmin"></c:set>
        <c:set value="" var="totalArr"></c:set>
        <span id="divcwadmin">
        <c:if test="${not empty requestScope.UserMAP[cwadmin]}">
        <c:forEach items="${requestScope.UserMAP[cwadmin]}" var="p" varStatus="i" begin="0" step="1">
        <c:set value="${p.userId },${totalArr }" var="totalArr"></c:set>
        	<c:if test="${i.count%6==0}">
        		&nbsp;${p.name }&nbsp;<input name="pppcwadmin" type="hidden" value="${p.userId }"/><br>
        	</c:if>
        	<c:if test="${i.count%6!=0}">
        		&nbsp;${p.name }&nbsp;<input name="pppcwadmin" type="hidden" value="${p.userId }"/>
        	</c:if>
        	
        </c:forEach>
        </c:if>
        <c:if test="${empty requestScope.UserMAP[cwadmin]}">
        	<font color="red">该角色下暂无数据</font>
        </c:if>
        </span>
        <input type="hidden" id="pcwadmin" value="${totalArr}"/>
        </td>
      </tr>
      
      <tr>
        <td height="50" bgcolor="#FFFFFF" class="f_4" nowrap="nowrap">&nbsp;教师档案袋管理员</td>
        <td align="left" bgcolor="#FFFFFF" style="cursor:pointer;" onmouseover="this.style.backgroundColor='#E4F5FF'" onmouseout="this.style.backgroundColor='#F2F5FA'" onclick="showModel('dadadmin');">
         <c:set var="dadadmin" scope="page" value="dadadmin"></c:set>
        <c:set value="" var="totalArr"></c:set>
        <span id="divdadadmin">
        <c:if test="${not empty requestScope.UserMAP[dadadmin]}">
        <c:forEach items="${requestScope.UserMAP[dadadmin]}" var="p" varStatus="i" begin="0" step="1">
        <c:set value="${p.userId },${totalArr }" var="totalArr"></c:set>
        	<c:if test="${i.count%6==0}">
        		&nbsp;${p.name }&nbsp;<input name="pppdadadmin" type="hidden" value="${p.userId }"/><br>
        	</c:if>
        	<c:if test="${i.count%6!=0}">
        		&nbsp;${p.name }&nbsp;<input name="pppdadadmin" type="hidden" value="${p.userId }"/>
        	</c:if>
        	
        </c:forEach>
        </c:if>
        <c:if test="${empty requestScope.UserMAP[dadadmin]}">
        	<font color="red">该角色下暂无数据</font>
        </c:if>
        </span>
        <input type="hidden" id="pdadadmin" value="${totalArr}"/>
        </td>
      </tr>
      
      <tr>
        <td height="50" bgcolor="#FFFFFF" class="f_4" nowrap="nowrap">&nbsp;门户管理员</td>
        <td align="left" bgcolor="#FFFFFF" style="cursor:pointer;" onmouseover="this.style.backgroundColor='#E4F5FF'" onmouseout="this.style.backgroundColor='#F2F5FA'" onclick="showModel('portaladmin');">
         <c:set var="portaladmin" scope="page" value="portaladmin"></c:set>
         <c:set value="" var="totalArr"></c:set>
        <span id="divportaladmin">
        <c:if test="${not empty requestScope.UserMAP[portaladmin]}">
        <c:forEach items="${requestScope.UserMAP[portaladmin]}" var="p" varStatus="i" begin="0" step="1">
        <c:set value="${p.userId },${totalArr }" var="totalArr"></c:set>
        	<c:if test="${i.count%6==0}">
        		&nbsp;${p.name }&nbsp;<input name="pppportaladmin" type="hidden" value="${p.userId }"/><br>
        	</c:if>
        	<c:if test="${i.count%6!=0}">
        		&nbsp;${p.name }&nbsp;<input name="pppportaladmin" type="hidden" value="${p.userId }"/>
        	</c:if>
        	
        </c:forEach>
        </c:if>
        <c:if test="${empty requestScope.UserMAP[portaladmin]}">
        	<font color="red">该角色下暂无数据</font>
        </c:if>
        </span>
        <input type="hidden" id="pportaladmin" value="${totalArr}"/>
        </td>
      </tr>
     
     <tr>
        <td height="50" bgcolor="#FFFFFF" class="f_4" nowrap="nowrap">&nbsp;物品采购员</td>
        <td align="left" bgcolor="#FFFFFF" style="cursor:pointer;" onmouseover="this.style.backgroundColor='#E4F5FF'" onmouseout="this.style.backgroundColor='#F2F5FA'" onclick="showModel('wpcgadmin');">
         <c:set var="wpcgadmin" scope="page" value="wpcgadmin"></c:set>
         <c:set value="" var="totalArr"></c:set>
        <span id="divwpcgadmin">
        <c:if test="${not empty requestScope.UserMAP[wpcgadmin]}">
        <c:forEach items="${requestScope.UserMAP[wpcgadmin]}" var="p" varStatus="i" begin="0" step="1">
        <c:set value="${p.userId },${totalArr }" var="totalArr"></c:set>
        	<c:if test="${i.count%6==0}">
        		&nbsp;${p.name }&nbsp;<input name="pppwpcgadmin" type="hidden" value="${p.userId }"/><br>
        	</c:if>
        	<c:if test="${i.count%6!=0}">
        		&nbsp;${p.name }&nbsp;<input name="pppwpcgadmin" type="hidden" value="${p.userId }"/>
        	</c:if>
        	
        </c:forEach>
        </c:if>
        <c:if test="${empty requestScope.UserMAP[wpcgadmin]}">
        	<font color="red">该角色下暂无数据</font>
        </c:if>
        </span>
        <input type="hidden" id="pwpcgadmin" value="${totalArr}"/>
        </td>
      </tr>
      
      <tr>
        <td height="50" bgcolor="#FFFFFF" class="f_4" nowrap="nowrap">&nbsp;短信管理员</td>
        <td align="left" bgcolor="#FFFFFF" style="cursor:pointer;" onmouseover="this.style.backgroundColor='#E4F5FF'" onmouseout="this.style.backgroundColor='#F2F5FA'" onclick="showModel('shortinfoadmin');">
         <c:set var="shortinfoadmin" scope="page" value="shortinfoadmin"></c:set>
         <c:set value="" var="totalArr"></c:set>
        <span id="divshortinfoadmin">
        <c:if test="${not empty requestScope.UserMAP[shortinfoadmin]}">
        <c:forEach items="${requestScope.UserMAP[shortinfoadmin]}" var="p" varStatus="i" begin="0" step="1">
        <c:set value="${p.userId },${totalArr }" var="totalArr"></c:set>
        	<c:if test="${i.count%6==0}">
        		&nbsp;${p.name }&nbsp;<input name="pppshortinfoadmin" type="hidden" value="${p.userId }"/><br>
        	</c:if>
        	<c:if test="${i.count%6!=0}">
        		&nbsp;${p.name }&nbsp;<input name="pppshortinfoadmin" type="hidden" value="${p.userId }"/>
        	</c:if>
        	
        </c:forEach>
        </c:if>
        <c:if test="${empty requestScope.UserMAP[shortinfoadmin]}">
        	<font color="red">该角色下暂无数据</font>
        </c:if>
        </span>
        <input type="hidden" id="pshortinfoadmin" value="${totalArr}"/>
        </td>
      </tr>
      
      <tr>
        <td height="50" bgcolor="#FFFFFF" class="f_4" nowrap="nowrap">&nbsp;薪资管理员</td>
        <td align="left" bgcolor="#FFFFFF" style="cursor:pointer;" onmouseover="this.style.backgroundColor='#E4F5FF'" onmouseout="this.style.backgroundColor='#F2F5FA'" onclick="showModel('wageadmin');">
         <c:set var="wageadmin" scope="page" value="wageadmin"></c:set>
         <c:set value="" var="totalArr"></c:set>
        <span id="divwageadmin">
        <c:if test="${not empty requestScope.UserMAP[wageadmin]}">
        <c:forEach items="${requestScope.UserMAP[wageadmin]}" var="p" varStatus="i" begin="0" step="1">
        <c:set value="${p.userId },${totalArr }" var="totalArr"></c:set>
        	<c:if test="${i.count%6==0}">
        		&nbsp;${p.name }&nbsp;<input name="pppwageadmin" type="hidden" value="${p.userId }"/><br>
        	</c:if>
        	<c:if test="${i.count%6!=0}">
        		&nbsp;${p.name }&nbsp;<input name="pppwageadmin" type="hidden" value="${p.userId }"/>
        	</c:if>
        	
        </c:forEach>
        </c:if>
        <c:if test="${empty requestScope.UserMAP[wageadmin]}">
        	<font color="red">该角色下暂无数据</font>
        </c:if>
        </span>
        <input type="hidden" id="pwageadmin" value="${totalArr}"/>
        </td>
      </tr>
      
    </table></td>
  </tr>
  
    <!-- ---------***** -->
    <tr>
    <td colspan="2" align="left" class="f_5">邮件授权</td>
  </tr>
  <tr>
    <td height="1" colspan="2" bgcolor="#9DD12E"></td>
  </tr>
  <tr>
    <td colspan="2" align="left" valign="top" class="border_2"><table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#DCDCDC">
      <tr>
        <td width="14%" height="30" align="left" bgcolor="#DBE9F6" class="f_4">&nbsp;邮件消息类别</td>
        <td width="86%" align="left" bgcolor="#DBE9F6" class="f_4">&nbsp;姓名 </td>
        </tr>
        
      <c:if test="${not empty requestScope.CODELIST}">  
      <c:forEach var="c" items="${requestScope.CODELIST}" >
	      <tr>
	        <td height="50" bgcolor="#FFFFFF" class="f_4">&nbsp;${c.name }</td>
	        <td align="left" bgcolor="#FFFFFF" style="cursor:pointer;" onmouseover="this.style.backgroundColor='#E4F5FF'" onmouseout="this.style.backgroundColor='#FFFFFF'" onclick="showModelDocument('${c.value}');">
	        <c:set var="sysadmin" scope="page" value="sysadmin"></c:set>
	        <c:set value="" var="totalArr"></c:set>
	        <span id="div${c.value}">
	        <c:if test="${not empty requestScope.DOCUMENTUserMAP[c.value]}">
	        <c:forEach items="${requestScope.DOCUMENTUserMAP[c.value]}" var="p" varStatus="i" begin="0" step="1">
	        <c:set value="${p.userId },${totalArr }" var="totalArr"></c:set>
	        	<c:if test="${i.count%6==0}">
	        	&nbsp;${p.name }&nbsp;<input name="ppp${c.value}" type="hidden" value="${p.userId }"/><br>	
	        	</c:if>
	        	<c:if test="${i.count%6!=0}">
	        	&nbsp;${p.name }&nbsp;<input name="ppp${c.value}" type="hidden" value="${p.userId }"/>	
	        	</c:if>
	        	
	        </c:forEach>
	        </c:if>
	        <c:if test="${empty requestScope.DOCUMENTUserMAP[c.value]}">
	        	<font color="red">该类型下暂无数据</font>
	        </c:if>
	        </span>
	        <input type="hidden" id="p${c.value}" value="${totalArr}"/>
	        </td>
	        </tr>
        </c:forEach>
     </c:if>
    
    
    
   
     
     
    </table></td>
  </tr>
  <tr>
    <td colspan="2" align="left">&nbsp;</td>
  </tr>
</table>
</div>
<div id="items" style="position: absolute; width: 730px;height:600px; top:100px; left:200px; padding-bottom:8px; background-color:#ECF7FD;z-index:10; border:3px solid #3A6EA5; display: none;" >
	<div style="width:100%;top:100px;left:200px;" id="title">
		<table border="0" width="100%" cellpadding="0" cellspacing="0" align="center" bgcolor="#3A6EA5">
						<tr style=" height: 30px;">
		<td>&nbsp;&nbsp;<font color='#FFFFFF'>请选择教师</font></td>
		<td align="right"><a href="javascript:closeDIV();" style="text-decoration: none;"><span style="color: #000000; font-size:;">[关闭]</span></a></td>
						</tr>
		</table>
	</div>
	<div style="width:100%;top:100px;left:200px;height: 100%">
	<iframe name="selectUserIframe" id="selectUserIframe" src="" style="width:100%;height: 100%" align="middle"  frameborder="0"></iframe>   
	</div>
		
</div>
</body>
</html>
